package cn.swu.edu.dlx;

public class Course {
    private String courseId;
    private String courseName;
    private String teacher;

    public Course(){}

    public Course(String courseId, String teacher, String courseName) {
        this.courseId = courseId;
        this.teacher = teacher;
        this.courseName = courseName;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
    public void showInfo(){
        System.out.println("----课程信息----");
        System.out.println("课程编号："+getCourseId());
        System.out.println("课程名称："+getCourseName());
        System.out.println("任课老师："+getTeacher());
    }
}
